#!/usr/bin/python




class alogic:
	
	def __init__(self):
		self.code='coding'
		self.number = 6



## if 判断


	def aif(self):
		if self.number > 3:
			print('\n-------if-------\n')
			print(self.number,'大了')
	def ifel(self):
		grade = 15
		print('-----ifel---------')
		if 80 <= grade <= 100:

			print('成绩优秀')
		elif 60 <= grade < 80:

			print('成绩中等')
		else:
			print('成绩差')

			if 20 <= grade < 60:
				print('再努力一把，还有救！')
			else:
				print('你要比以前更努力才行，你可以的！')


    
#aaif(4)


## for

	def afor(self):
		print('\n----for-----\n')
		for i in self.code:
			print(i)
		
		
#afor('python')




# aa=alogic()
# aa.aif()
# aa.aif()
# aa.afor()
# aa.afor()

# aa.ifel()






